package service;

import dao.userMapper;
import entity.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
@Service
public class SelectUserByRoleService {
    @Autowired
    private userMapper userMapper;

    public List<user> selectUserByRole(Integer role){
        return userMapper.selectUserByRole(role);
    }
}
